<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>工具箱 - 首页</title>
    <!-- 引入Tailwind CSS -->
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <!-- 引入Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
</head>
<body class="bg-gray-50 min-h-screen">
    <!-- 导航栏 -->
    <nav class="bg-white shadow-md">
        <div class="container mx-auto px-4">
            <div class="flex justify-between items-center py-3">
                <div class="flex items-center space-x-4">
                    <a href="#" class="flex items-center space-x-2">
                        <i class="fas fa-tools text-blue-600 text-2xl"></i>
                        <span class="font-bold text-xl text-blue-600">工具箱</span>
                    </a>
                </div>
                
                <div class="w-1/3">
                    <div class="relative">
                        <input type="text" placeholder="搜索工具..." class="w-full py-2 px-4 bg-gray-100 rounded-full focus:outline-none focus:ring-2 focus:ring-blue-500 focus:bg-white">
                        <button class="absolute right-0 top-0 mt-2 mr-4 text-gray-500">
                            <i class="fas fa-search"></i>
                        </button>
                    </div>
                </div>
                
                <div class="flex items-center space-x-4">
                    <a href="#" class="text-gray-600 hover:text-blue-600">
                        <i class="far fa-star mr-1"></i>收藏
                    </a>
                    <a href="#" class="text-gray-600 hover:text-blue-600">
                        <i class="far fa-clock mr-1"></i>历史
                    </a>
                    <a href="#" class="flex items-center text-gray-600 hover:text-blue-600">
                        <i class="far fa-user-circle text-2xl"></i>
                    </a>
                </div>
            </div>
        </div>
    </nav>

    <!-- 英雄区域 -->
    <div class="bg-gradient-to-r from-blue-500 to-indigo-600 text-white py-16">
        <div class="container mx-auto px-4 text-center">
            <h1 class="text-4xl font-bold mb-4">一站式在线工具集合</h1>
            <p class="text-xl mb-8">便捷、高效、专业的工具，为您的工作和生活提供助力</p>
            <div class="max-w-md mx-auto">
                <div class="relative">
                    <input type="text" placeholder="搜索您需要的工具..." class="w-full py-3 px-5 rounded-full text-gray-800 focus:outline-none focus:ring-2 focus:ring-yellow-400">
                    <button class="absolute right-0 top-0 bg-yellow-500 hover:bg-yellow-600 text-white rounded-full h-full px-6 font-medium">
                        搜索
                    </button>
                </div>
            </div>
        </div>
    </div>

    <!-- 热门工具 -->
    <div class="container mx-auto px-4 py-12">
        <h2 class="text-2xl font-bold mb-6 text-gray-800">热门工具</h2>
        <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6">
            <!-- 工具卡片 1 -->
            <a href="#" class="bg-white rounded-lg shadow-md hover:shadow-lg transition-shadow overflow-hidden">
                <div class="bg-blue-100 p-4 flex justify-center">
                    <i class="fas fa-font text-blue-600 text-3xl"></i>
                </div>
                <div class="p-4">
                    <h3 class="font-bold text-lg mb-2">文本转换器</h3>
                    <p class="text-gray-600 text-sm">大小写转换、编码解码、格式化等文本处理工具</p>
                </div>
            </a>
            
            <!-- 工具卡片 2 -->
            <a href="#" class="bg-white rounded-lg shadow-md hover:shadow-lg transition-shadow overflow-hidden">
                <div class="bg-green-100 p-4 flex justify-center">
                    <i class="fas fa-image text-green-600 text-3xl"></i>
                </div>
                <div class="p-4">
                    <h3 class="font-bold text-lg mb-2">图片压缩</h3>
                    <p class="text-gray-600 text-sm">在线压缩图片大小，无损保持图片质量</p>
                </div>
            </a>
            
            <!-- 工具卡片 3 -->
            <a href="#" class="bg-white rounded-lg shadow-md hover:shadow-lg transition-shadow overflow-hidden">
                <div class="bg-purple-100 p-4 flex justify-center">
                    <i class="fas fa-code text-purple-600 text-3xl"></i>
                </div>
                <div class="p-4">
                    <h3 class="font-bold text-lg mb-2">JSON格式化</h3>
                    <p class="text-gray-600 text-sm">格式化、验证和美化JSON数据</p>
                </div>
            </a>
            
            <!-- 工具卡片 4 -->
            <a href="#" class="bg-white rounded-lg shadow-md hover:shadow-lg transition-shadow overflow-hidden">
                <div class="bg-yellow-100 p-4 flex justify-center">
                    <i class="fas fa-calculator text-yellow-600 text-3xl"></i>
                </div>
                <div class="p-4">
                    <h3 class="font-bold text-lg mb-2">单位换算</h3>
                    <p class="text-gray-600 text-sm">长度、重量、面积等常用单位互换计算器</p>
                </div>
            </a>
        </div>
    </div>

    <!-- 工具分类 -->
    <div class="bg-gray-100 py-12">
        <div class="container mx-auto px-4">
            <h2 class="text-2xl font-bold mb-6 text-gray-800">工具分类</h2>
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
                <!-- 分类1 -->
                <div class="bg-white rounded-lg shadow p-6">
                    <div class="flex items-center mb-4">
                        <div class="rounded-full bg-blue-100 p-3 mr-4">
                            <i class="fas fa-font text-blue-600 text-xl"></i>
                        </div>
                        <h3 class="text-xl font-bold">文本处理</h3>
                    </div>
                    <ul class="space-y-2 text-gray-600">
                        <li><a href="#" class="hover:text-blue-600">文本转换器</a></li>
                        <li><a href="#" class="hover:text-blue-600">加密/解密</a></li>
                        <li><a href="#" class="hover:text-blue-600">文本比较</a></li>
                        <li><a href="#" class="hover:text-blue-600">随机文本生成</a></li>
                    </ul>
                    <a href="#" class="inline-block mt-4 text-blue-600 hover:underline">查看全部 <i class="fas fa-chevron-right text-xs ml-1"></i></a>
                </div>
                
                <!-- 分类2 -->
                <div class="bg-white rounded-lg shadow p-6">
                    <div class="flex items-center mb-4">
                        <div class="rounded-full bg-green-100 p-3 mr-4">
                            <i class="fas fa-image text-green-600 text-xl"></i>
                        </div>
                        <h3 class="text-xl font-bold">图片处理</h3>
                    </div>
                    <ul class="space-y-2 text-gray-600">
                        <li><a href="#" class="hover:text-blue-600">图片压缩</a></li>
                        <li><a href="#" class="hover:text-blue-600">格式转换</a></li>
                        <li><a href="#" class="hover:text-blue-600">图片裁剪</a></li>
                        <li><a href="#" class="hover:text-blue-600">水印添加</a></li>
                    </ul>
                    <a href="#" class="inline-block mt-4 text-blue-600 hover:underline">查看全部 <i class="fas fa-chevron-right text-xs ml-1"></i></a>
                </div>
                
                <!-- 分类3 -->
                <div class="bg-white rounded-lg shadow p-6">
                    <div class="flex items-center mb-4">
                        <div class="rounded-full bg-purple-100 p-3 mr-4">
                            <i class="fas fa-code text-purple-600 text-xl"></i>
                        </div>
                        <h3 class="text-xl font-bold">开发工具</h3>
                    </div>
                    <ul class="space-y-2 text-gray-600">
                        <li><a href="#" class="hover:text-blue-600">JSON格式化</a></li>
                        <li><a href="#" class="hover:text-blue-600">代码美化</a></li>
                        <li><a href="#" class="hover:text-blue-600">正则测试</a></li>
                        <li><a href="#" class="hover:text-blue-600">时间戳转换</a></li>
                    </ul>
                    <a href="#" class="inline-block mt-4 text-blue-600 hover:underline">查看全部 <i class="fas fa-chevron-right text-xs ml-1"></i></a>
                </div>
                
                <!-- 分类4 -->
                <div class="bg-white rounded-lg shadow p-6">
                    <div class="flex items-center mb-4">
                        <div class="rounded-full bg-yellow-100 p-3 mr-4">
                            <i class="fas fa-calculator text-yellow-600 text-xl"></i>
                        </div>
                        <h3 class="text-xl font-bold">数据转换</h3>
                    </div>
                    <ul class="space-y-2 text-gray-600">
                        <li><a href="#" class="hover:text-blue-600">单位换算</a></li>
                        <li><a href="#" class="hover:text-blue-600">进制转换</a></li>
                        <li><a href="#" class="hover:text-blue-600">日期计算</a></li>
                        <li><a href="#" class="hover:text-blue-600">货币转换</a></li>
                    </ul>
                    <a href="#" class="inline-block mt-4 text-blue-600 hover:underline">查看全部 <i class="fas fa-chevron-right text-xs ml-1"></i></a>
                </div>
                
                <!-- 分类5 -->
                <div class="bg-white rounded-lg shadow p-6">
                    <div class="flex items-center mb-4">
                        <div class="rounded-full bg-red-100 p-3 mr-4">
                            <i class="fas fa-file-pdf text-red-600 text-xl"></i>
                        </div>
                        <h3 class="text-xl font-bold">文件转换</h3>
                    </div>
                    <ul class="space-y-2 text-gray-600">
                        <li><a href="#" class="hover:text-blue-600">PDF转换器</a></li>
                        <li><a href="#" class="hover:text-blue-600">音频转换</a></li>
                        <li><a href="#" class="hover:text-blue-600">视频转换</a></li>
                        <li><a href="#" class="hover:text-blue-600">文档转换</a></li>
                    </ul>
                    <a href="#" class="inline-block mt-4 text-blue-600 hover:underline">查看全部 <i class="fas fa-chevron-right text-xs ml-1"></i></a>
                </div>
                
                <!-- 分类6 -->
                <div class="bg-white rounded-lg shadow p-6">
                    <div class="flex items-center mb-4">
                        <div class="rounded-full bg-pink-100 p-3 mr-4">
                            <i class="fas fa-life-ring text-pink-600 text-xl"></i>
                        </div>
                        <h3 class="text-xl font-bold">生活工具</h3>
                    </div>
                    <ul class="space-y-2 text-gray-600">
                        <li><a href="#" class="hover:text-blue-600">随机数生成</a></li>
                        <li><a href="#" class="hover:text-blue-600">密码生成器</a></li>
                        <li><a href="#" class="hover:text-blue-600">BMI计算器</a></li>
                        <li><a href="#" class="hover:text-blue-600">抽奖工具</a></li>
                    </ul>
                    <a href="#" class="inline-block mt-4 text-blue-600 hover:underline">查看全部 <i class="fas fa-chevron-right text-xs ml-1"></i></a>
                </div>
            </div>
        </div>
    </div>

    <!-- 最近更新 -->
    <div class="container mx-auto px-4 py-12">
        <div class="flex justify-between items-center mb-6">
            <h2 class="text-2xl font-bold text-gray-800">最近更新</h2>
            <a href="#" class="text-blue-600 hover:underline">查看全部</a>
        </div>
        <div class="bg-white shadow-md rounded-lg overflow-hidden">
            <div class="overflow-x-auto">
                <table class="min-w-full">
                    <thead class="bg-gray-100">
                        <tr>
                            <th class="py-3 px-4 text-left text-gray-600">工具名称</th>
                            <th class="py-3 px-4 text-left text-gray-600">分类</th>
                            <th class="py-3 px-4 text-left text-gray-600">更新内容</th>
                            <th class="py-3 px-4 text-left text-gray-600">更新时间</th>
                        </tr>
                    </thead>
                    <tbody class="divide-y divide-gray-200">
                        <tr class="hover:bg-gray-50">
                            <td class="py-3 px-4"><a href="#" class="text-blue-600 hover:underline">图片压缩</a></td>
                            <td class="py-3 px-4">图片处理</td>
                            <td class="py-3 px-4">优化压缩算法，提高压缩比例</td>
                            <td class="py-3 px-4">2023-04-15</td>
                        </tr>
                        <tr class="hover:bg-gray-50">
                            <td class="py-3 px-4"><a href="#" class="text-blue-600 hover:underline">JSON格式化</a></td>
                            <td class="py-3 px-4">开发工具</td>
                            <td class="py-3 px-4">新增导出功能，支持多种格式导出</td>
                            <td class="py-3 px-4">2023-04-10</td>
                        </tr>
                        <tr class="hover:bg-gray-50">
                            <td class="py-3 px-4"><a href="#" class="text-blue-600 hover:underline">时间戳转换</a></td>
                            <td class="py-3 px-4">开发工具</td>
                            <td class="py-3 px-4">增加多种日期格式支持</td>
                            <td class="py-3 px-4">2023-04-05</td>
                        </tr>
                        <tr class="hover:bg-gray-50">
                            <td class="py-3 px-4"><a href="#" class="text-blue-600 hover:underline">密码生成器</a></td>
                            <td class="py-3 px-4">生活工具</td>
                            <td class="py-3 px-4">完善安全性检测功能</td>
                            <td class="py-3 px-4">2023-04-01</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>

    <!-- 用户反馈 -->
    <div class="bg-gray-100 py-12">
        <div class="container mx-auto px-4">
            <h2 class="text-2xl font-bold mb-8 text-center text-gray-800">用户反馈</h2>
            <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                <div class="bg-white rounded-lg shadow p-6">
                    <div class="flex items-center mb-4">
                        <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="用户头像" class="w-12 h-12 rounded-full mr-4">
                        <div>
                            <h4 class="font-bold">张先生</h4>
                            <div class="flex text-yellow-400">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                            </div>
                        </div>
                    </div>
                    <p class="text-gray-600">"这个工具箱太实用了，特别是JSON格式化工具，帮我节省了很多调试时间。界面简洁易用，功能强大！"</p>
                </div>
                
                <div class="bg-white rounded-lg shadow p-6">
                    <div class="flex items-center mb-4">
                        <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="用户头像" class="w-12 h-12 rounded-full mr-4">
                        <div>
                            <h4 class="font-bold">李女士</h4>
                            <div class="flex text-yellow-400">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star-half-alt"></i>
                            </div>
                        </div>
                    </div>
                    <p class="text-gray-600">"图片压缩工具质量很高，压缩后的图片几乎看不出差别，但体积减小了很多。作为一个设计师，这个工具为我的工作提供了很大帮助。"</p>
                </div>
                
                <div class="bg-white rounded-lg shadow p-6">
                    <div class="flex items-center mb-4">
                        <img src="https://randomuser.me/api/portraits/men/67.jpg" alt="用户头像" class="w-12 h-12 rounded-full mr-4">
                        <div>
                            <h4 class="font-bold">王先生</h4>
                            <div class="flex text-yellow-400">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="far fa-star"></i>
                            </div>
                        </div>
                    </div>
                    <p class="text-gray-600">"非常好用的工具集合，几乎涵盖了我日常工作中需要的所有工具。希望能增加更多编程相关的工具。"</p>
                </div>
            </div>
        </div>
    </div>

    <!-- 页脚 -->
    <footer class="bg-gray-800 text-white py-10">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                <div>
                    <h3 class="text-lg font-bold mb-4">关于我们</h3>
                    <p class="text-gray-400">工具箱是一个提供各种在线工具的平台，旨在为用户提供便捷、高效的在线工具服务。</p>
                </div>
                
                <div>
                    <h3 class="text-lg font-bold mb-4">热门工具</h3>
                    <ul class="space-y-2 text-gray-400">
                        <li><a href="#" class="hover:text-white">图片压缩</a></li>
                        <li><a href="#" class="hover:text-white">JSON格式化</a></li>
                        <li><a href="#" class="hover:text-white">文本转换器</a></li>
                        <li><a href="#" class="hover:text-white">单位换算</a></li>
                    </ul>
                </div>
                
                <div>
                    <h3 class="text-lg font-bold mb-4">常用链接</h3>
                    <ul class="space-y-2 text-gray-400">
                        <li><a href="#" class="hover:text-white">使用指南</a></li>
                        <li><a href="#" class="hover:text-white">用户协议</a></li>
                        <li><a href="#" class="hover:text-white">隐私政策</a></li>
                        <li><a href="#" class="hover:text-white">联系我们</a></li>
                    </ul>
                </div>
                
                <div>
                    <h3 class="text-lg font-bold mb-4">关注我们</h3>
                    <div class="flex space-x-4">
                        <a href="#" class="text-gray-400 hover:text-white text-xl">
                            <i class="fab fa-weixin"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white text-xl">
                            <i class="fab fa-weibo"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white text-xl">
                            <i class="fab fa-github"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white text-xl">
                            <i class="fab fa-twitter"></i>
                        </a>
                    </div>
                </div>
            </div>
            
            <div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
                <p>© 2023 工具箱 版权所有</p>
            </div>
        </div>
    </footer>
</body>
</html> 